package com.boe.csb.core.dao;

import com.boe.csb.core.entity.po.BoeUserMobilemsg;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface BoeUserMobilemsgMapper {
    long countByExample(BoeUserMobilemsgCriteria example);

    int deleteByExample(BoeUserMobilemsgCriteria example);

    int deleteByPrimaryKey(Integer id);

    int insert(BoeUserMobilemsg record);

    int insertSelective(BoeUserMobilemsg record);

    List<BoeUserMobilemsg> selectByExampleWithRowbounds(BoeUserMobilemsgCriteria example, RowBounds rowBounds);

    List<BoeUserMobilemsg> selectByExample(BoeUserMobilemsgCriteria example);

    BoeUserMobilemsg selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BoeUserMobilemsg record, @Param("example") BoeUserMobilemsgCriteria example);

    int updateByExample(@Param("record") BoeUserMobilemsg record, @Param("example") BoeUserMobilemsgCriteria example);

    int updateByPrimaryKeySelective(BoeUserMobilemsg record);

    int updateByPrimaryKey(BoeUserMobilemsg record);
    
    BoeUserMobilemsg getLastMobileMsgByUser(@Param("userName")String userName, @Param("type")int type);
    
    BoeUserMobilemsg getLastMobileMsgByPhone(@Param("revNum")String revNum, @Param("type")int type);
}